package com.blackline.UI.MATCH;

import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;

/**
 * @author XBO
 * @version Jan, 2013
 * <p>This page is after clicking "Add New Adhoc Match Set" button on the MatchSets page. <br>
 * The "new" in the name means it is newly creating a Match Set.<br>
 * <b>Notice: this page is different from "MatchSetDetails_edit" page.</b> <br>
 * Please refer to UI.MatchSetDetails_new.png in doc-files.
 */
public class MatchSetDetails_new {
	/**
	 * Save button
	 */
	@FindBy (id = "btnISave")
	public WebElement Save_button;
	
	/**
	 * Cancel button
	 */
	@FindBy (id = "btnICancel")
	public WebElement Cancel_button;
	
	/**
	 * Matched Transactions button
	 */
	@FindBy (id = "btnIMatched")
	public WebElement Matched_Transactions_button;
	
	/**
	 * Unmatched Transactions button
	 */
	@FindBy (id = "btnIUnmatched")
	public WebElement Unmatched_Transactions_button;
	
	/**
	 * Match Set Name text field.
	 */
	@FindBy (id = "ctl00_ctl00_contentBody_cphMain_tbName")
	public WebElement Match_Set_Name_textField;
	
	/**
	 * Description iframe. If you want to input texts into Description text box, you need to switch into this iframe; later you may need to switch back to defaultContent().
	 */
	@FindBy (id = "ctl00_ctl00_contentBody_cphMain_bleDescription_contentIframe")
	public WebElement Description_iframe;
	
	/**
	 * Description text box
	 */
	@FindBy (xpath = "//body")
	public WebElement Description_textBox;
	
	/**
	 * Entity text field
	 */
	@FindBy (id = "ctl00_ctl00_contentBody_cphMain_entityCombos_combo_Input")
	public WebElement Entity_textField;
	
	/**
	 * Entity text field combo down arrow
	 */
	@FindBy (id = "ctl00_ctl00_contentBody_cphMain_entityCombos_combo_Arrow")
	public WebElement Entity_downArrow;

	/**
	 * Tree view icon following the Entity_textField
	 */
	@FindBy (id = "ctl00_ctl00_contentBody_cphMain_entityCombos_imgTreeView")
	public WebElement Tree_View_icon;
	
	/**
	 * The Entity expanded selection tree
	 */
	@FindBy (id = "ctl00_ctl00_headerBody_ctl00_ctl00_contentBody_cphMain_entityCombos_combo_i0_RadTreeView1Panel")
	public WebElement Entity_treeViewpanel;
	
	/**
	 * BlackLine International node in the entity tree view panel
	 */
	@FindBy (xpath = "//ul[@class='rtUL rtLines']//span[text()='BlackLine International']")
	public WebElement Blackline_International_node;
	
	
	
	/**
	 * Account text field
	 */
	@FindBy (id = "ctl00_ctl00_contentBody_cphMain_tbAccount")
	public WebElement Account_textField;
	
	/**
	 * Account adding icon following the Account_textField
	 */
	@FindBy (id = "ctl00_ctl00_contentBody_cphMain_ibKey1")
	public WebElement accountAddingIcon;
	
	/**
	 * Account removing icon following the Account_textField
	 */
	@FindBy (id = "ctl00_ctl00_contentBody_cphMain_ibRemoveKey1")
	public WebElement accountRemovingIcon;
	
	/**
	 * 1st Data Source drop down list
	 */
	@FindBy(id = "ctl00_ctl00_contentBody_cphMain_ddlBatch1")
	public WebElement Data_Source_1_dropdownList;
	
	/**
	 * 2nd Data Source drop down list
	 */
	@FindBy(id = "ctl00_ctl00_contentBody_cphMain_ddlBatch2")
	public WebElement Data_Source_2_dropdownList;
	
	/**
	 * 3rd Data Source drop down list
	 */
	@FindBy(id = "ctl00_ctl00_contentBody_cphMain_ddlBatch3")
	public WebElement Data_Source_3_dropdownList;
	
	/**
	 * 1st Display Fields link
	 */
	@FindBy (id = "ctl00_ctl00_contentBody_cphMain_lbGridFields1")
	public WebElement Dispaly_Fields_1_link;
	
	/**
	 * 2nd Display Fields link
	 */
	@FindBy (id = "ctl00_ctl00_contentBody_cphMain_lbGridFields2")
	public WebElement Dispaly_Fields_2_link;
	
	/**
	 * 3rd Display Fields link
	 */
	@FindBy (id = "ctl00_ctl00_contentBody_cphMain_lbGridFields3")
	public WebElement Dispaly_Fields_3_link;
	
	/**
	 * 1st Supporting Items link
	 */
	@FindBy (id = "ctl00_ctl00_contentBody_cphMain_lbSupportingItems1")
	public WebElement Supporting_Items_1_link;
	
	/**
	 * 2nd Supporting Items link
	 */
	@FindBy (id = "ctl00_ctl00_contentBody_cphMain_lbSupportingItems2")
	public WebElement Supporting_Items_2_link;
	
	/**
	 * 3rd Supporting Items link
	 */
	@FindBy (id = "ctl00_ctl00_contentBody_cphMain_lbSupportingItems3")
	public WebElement Supporting_Items_3_link;
	
	
	/**
	 * Allow preparer to suspend transactions checkbox
	 */
	@FindBy (id = "ctl00_ctl00_contentBody_cphMain_cbAllowSuspend")
	public WebElement Allow_preparer_to_suspend_transactions_checkbox;
	
	/**
	 * Allow preparer to unload transactionss checkbox
	 */
	@FindBy (id = "ctl00_ctl00_contentBody_cphMain_cbAllowUnload")
	public WebElement Allow_preparer_to_upload_transactions_checkbox;
	
	
	/**
	 * Allow preparer to view data sources checkbox
	 */
	@FindBy (id = "ctl00_ctl00_contentBody_cphMain_cbAllowDataView")
	public WebElement Allow_preparer_to_view_data_sources_checkbox;
	
	
	/**
	 * Add link under "Pass rules - auto, suggested"
	 */
	@FindBy (id = "ctl00_ctl00_contentBody_cphMain_lbAddPassRule")
	public WebElement Add_linkUnderPassRulesAutoSuggested;
	
	/**
	 * 1st Pass Rule in "Pass Rules - Auto, Suggested" table
	 */
	@FindBy (id = "ctl00_ctl00_contentBody_cphMain_ReorderPassRules__rli0_lbViewPassRule")
	public WebElement passRule1inRassRulesTable;
	
	/**
	 * Clone link for the 1st pass rule
	 */
	@FindBy (id = "ctl00_ctl00_contentBody_cphMain_ReorderPassRules__rli0_lbClonePassRule")
	public WebElement cloneLinkForPassRule1;
	
	/**
	 * Delete link for the 1st pass rule
	 */
	@FindBy (id = "ctl00_ctl00_contentBody_cphMain_ReorderPassRules__rli0_lbDeletePassRule")
	public WebElement deleteLinkForPassRule1;
	
	
	
	
	/**
	 * Add link under "Unmatched Filtering"
	 */
	@FindBy (id = "ctl00_ctl00_contentBody_cphMain_lbAddManualPassRule")
	public WebElement Add_linkUnderUnmatchedFiltering;
	
	
}
